package com.csweimei.rentmanagementtreasure.http.entity;

import android.view.View;

import com.csweimei.rentmanagementtreasure.utils.ValidateUtils;
import com.google.gson.annotations.SerializedName;

import java.util.List;

public class FollowListBean extends BaseResult{
    @SerializedName("data")
    private DataDTO data;

    public DataDTO getData() {
        return data;
    }

    public void setData(DataDTO data) {
        this.data = data;
    }

    public static class DataDTO {
        @SerializedName("TobeFollow")
        private List<TobeFollowDTO> tobeFollow;
        @SerializedName("followingUp")
        private List<FollowingUpDTO> followingUp;

        public List<TobeFollowDTO> getTobeFollow() {
            return tobeFollow;
        }

        public void setTobeFollow(List<TobeFollowDTO> tobeFollow) {
            this.tobeFollow = tobeFollow;
        }

        public List<FollowingUpDTO> getFollowingUp() {
            return followingUp;
        }

        public void setFollowingUp(List<FollowingUpDTO> followingUp) {
            this.followingUp = followingUp;
        }

        public static class TobeFollowDTO {
            @SerializedName("customid")
            private int customid;
            @SerializedName("customImg")
            private String customImg;
            @SerializedName("customname")
            private String customname;
            @SerializedName("customtype")
            private String customtype;
            @SerializedName("customsex")
            private String customsex;
            @SerializedName("customphone")
            private String customphone;
            @SerializedName("customTime")
            private String customTime;

            public String getAddtime() {
                if (customTime.contains("T")){
                    return ValidateUtils.getTimeByType(customTime,ValidateUtils.TIME_YMD)+" 创建";
                }else {
                    return customTime+" 创建";

                }
            }

            public int showAj() {
                if (customtype.contains("A")){
                    return View.VISIBLE;
                }else {
                    return View.GONE;
                }
            }

            public int showBj() {
                if (customtype.contains("B")){
                    return View.VISIBLE;
                }else {
                    return View.GONE;
                }
            }

            public int showCj() {
                if (customtype.contains("C")){
                    return View.VISIBLE;
                }else {
                    return View.GONE;
                }
            }


            public int getCustomid() {
                return customid;
            }

            public void setCustomid(int customid) {
                this.customid = customid;
            }

            public String getCustomImg() {
                return customImg;
            }

            public void setCustomImg(String customImg) {
                this.customImg = customImg;
            }

            public String getCustomname() {
                return customname;
            }

            public void setCustomname(String customname) {
                this.customname = customname;
            }

            public String getCustomtype() {
                return customtype;
            }

            public void setCustomtype(String customtype) {
                this.customtype = customtype;
            }

            public String getCustomsex() {
                return customsex;
            }

            public void setCustomsex(String customsex) {
                this.customsex = customsex;
            }

            public String getCustomphone() {
                return customphone;
            }

            public void setCustomphone(String customphone) {
                this.customphone = customphone;
            }

            public String getCustomTime() {
                return customTime;
            }

            public void setCustomTime(String customTime) {
                this.customTime = customTime;
            }
        }

        public static class FollowingUpDTO {
            @SerializedName("customid")
            private int customid;
            @SerializedName("customImg")
            private String customImg;
            @SerializedName("customname")
            private String customname;
            @SerializedName("customtype")
            private String customtype;
            @SerializedName("customsex")
            private String customsex;
            @SerializedName("customphone")
            private String customphone;
            @SerializedName("followtime")
            private String followtime;
            @SerializedName("followconten")
            private String followconten;
            @SerializedName("customTime")
            private String customTime;

            public String getAddtime() {
                if (customTime.contains("T")){
                    return ValidateUtils.getTimeByType(customTime,ValidateUtils.TIME_YMD)+" 创建";
                }else {
                    return customTime+" 创建";

                }
            }

            public int showAj() {
                if (customtype.contains("A")){
                    return View.VISIBLE;
                }else {
                    return View.GONE;
                }
            }

            public int showBj() {
                if (customtype.contains("B")){
                    return View.VISIBLE;
                }else {
                    return View.GONE;
                }
            }

            public int showCj() {
                if (customtype.contains("C")){
                    return View.VISIBLE;
                }else {
                    return View.GONE;
                }
            }

            public int getCustomid() {
                return customid;
            }

            public void setCustomid(int customid) {
                this.customid = customid;
            }

            public String getCustomImg() {
                return customImg;
            }

            public void setCustomImg(String customImg) {
                this.customImg = customImg;
            }

            public String getCustomname() {
                return customname;
            }

            public void setCustomname(String customname) {
                this.customname = customname;
            }

            public String getCustomtype() {
                return customtype;
            }

            public void setCustomtype(String customtype) {
                this.customtype = customtype;
            }

            public String getCustomsex() {
                return customsex;
            }

            public void setCustomsex(String customsex) {
                this.customsex = customsex;
            }

            public String getCustomphone() {
                return customphone;
            }

            public void setCustomphone(String customphone) {
                this.customphone = customphone;
            }

            public String getFollowtime() {
                if (followtime.contains("T")){
                    return ValidateUtils.getTimeByType(followtime,ValidateUtils.TIME_YMD1);
                }else {
                    return followtime;
                }
            }

            public void setFollowtime(String followtime) {
                this.followtime = followtime;
            }

            public String getFollowconten() {
                return followconten;
            }

            public void setFollowconten(String followconten) {
                this.followconten = followconten;
            }

            public String getCustomTime() {
                return customTime;
            }

            public void setCustomTime(String customTime) {
                this.customTime = customTime;
            }
        }
    }
}
